package com.project.restaurant.order.dto;



import com.project.restaurant.order.enums.OrderState;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.time.LocalDateTime;
import java.util.List;

@Data
@NoArgsConstructor
@AllArgsConstructor
@Accessors(chain = true)
public class BriefOrder {

    /**
     * 订单id
     */
    protected String orderId;

    /**
     * 订单的所有订单项
     */
    protected List<OrderItem> orderItems;

    /**
     * 该订单的总金额
     */
    protected Integer totalPrice;

    /**
     * 订单的状态
     */
    protected OrderState orderState;

    /**
     * 下单的时间
     */
    protected LocalDateTime orderPurchaseTime;

}
